package com.tyl.builder建造者模式.demo2;

import com.tyl.builder建造者模式.demo2.Porduct;
import com.tyl.builder建造者模式.demo2.Werker;

public class Test {
    public static void main(String[] args) {
        Werker werker=new Werker();
        //链式编程，在原来的基础上修改，不想修改也有默认值
        Porduct porduct = werker.builderA("皇堡").getPorduct();
        System.out.println(porduct.toString());

    }
}
